package exception;

import java.io.FileOutputStream;
import java.io.IOException;

public class AutoCloseableTest {
    public static void main(String[] args) {
        try (
                FileOutputStream fos = new FileOutputStream("./Javas-se/fos.dat");
        ) {
            fos.write(1);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
